<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/Css/public.css" />
    <link rel="stylesheet" href="__PUBLIC__/Css/node.css" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<div id="wrap">
    <a href="<?php echo U('Admin/Rbac/addNode');?>" class="add-app">添加应用</a>
    <?php if(is_array($node)): foreach($node as $key=>$app): ?><div class="app">
            <p>
                <strong><?php echo ($app["title"]); ?></strong>
                【<a href="<?php echo U('Admin/Rbac/addNode',array('pid'=>$app['id'],'level'=>2));?>">添加控制器</a>】
                【<a href="">修改</a>】
                【<a href="">删除</a>】
            </p>

            <?php if(is_array($app["child"])): foreach($app["child"] as $key=>$action): ?><dl>
                    <dt>
                        <strong><?php echo ($action["title"]); ?></strong>
                        【<a href="<?php echo U('Admin/Rbac/addNode',array('pid'=>$action[id],'level'=>3));?>">添加方法</a>】
                    </dt>
                </dl>
                <?php if(is_array($action["child"])): foreach($action["child"] as $key=>$method): ?><dd>
                        <span><?php echo ($method["title"]); ?></span>
                        【<a href="">修改</a>】
                        【<a href="">删除</a>】
                    </dd><?php endforeach; endif; endforeach; endif; ?>
        </div><?php endforeach; endif; ?>
</div>
</body>
</html>